//----------------------------------Include-------------------------------------
#define  APP_GLOBALS
#include "glbvar.h"
//------------------------------------------------------------------------------

//---------------------------------Global Var-----------------------------------
uint64_t     igu64_tick_ms;
uint32_t     igu32_bufflag;

#if 1
float        igaf_adc_u[GM_SAMP_LEN];   //sample result
float        igaf_adc_i[GM_SAMP_LEN];
float         gaf_fft_u[GM_FFT_NUM*2];  //fft result
float         gaf_fft_i[GM_FFT_NUM*2];

//float         gaf_amp_u[GM_FFT_NUM/2];   //all of amplitude
//float         gaf_amp_i[GM_FFT_NUM/2];
double        gaf_pt_amp_u[GM_NEED_PT];    //need point amplitude
double        gaf_pt_amp_i[GM_NEED_PT];
#else
q15_t        igqx_adc_u[GM_SAMP_LEN];   //sample result
q15_t        igqx_adc_i[GM_SAMP_LEN];
q15_t         gqx_fft_u[GM_FFT_NUM*2];  //fft result
q15_t         gqx_fft_i[GM_FFT_NUM*2];

q15_t         gqx_pt_amp_u[GM_NEED_PT];
q15_t         gqx_pt_amp_i[GM_NEED_PT];
#endif

double        gf_rms_u;
double        gf_rms_i;
double        gf_pwr_p;
double        gf_pwr_q;
double        gf_pwr_s;
double        gf_factor;
double        gf_thd;

double        gf_coeff_u;
double        gf_coeff_i;
uint32_t      gu32_turns;
//------------------------------------------------------------------------------

//---------------------------------Public Func----------------------------------
//------------------------------------EOF---------------------------------------

